//
//  MyProfileViewController.h
//  jungoo
//
//  Created by Dang Quang Trung on 7/25/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AlbumController.h"
#import "BaseViewController.h"
#import "YPickerView.h"

@class Course;
@class Module;
@class College;
enum
{
    ViewMode,
    EditMode
};
typedef NSInteger MyProfileMode;
@interface MyProfileViewController : BaseViewController
{
    UITableView *tableView1;
    UITableView *tableView2;
    UIImageView *avatar;
    UITableViewCell *avatarCell;
    UITableViewCell *profileCell;
    UITableViewCell* relationshipCell;
    
    NSMutableArray *listCourse;
    NSMutableArray *listModule;
    NSMutableArray *listCollege;
    NSMutableArray *listImage;
    
    NSInteger selectedCourse;
    NSInteger selectedModule;
    NSInteger selectedCollege;
    
    UIImage * personAvatar;
    AlbumController *albumVC;
    
    NSMutableDictionary *backupUserInfo;
    
    IBOutlet UIView *yearUI;
    NSInteger selectedValue;
    NSIndexPath *selectedIndexPath;
    UIAlertView *privateAlertView ;
    UIAlertView *publicAlertView ;
    BOOL isRefresh;
}

@property (nonatomic,retain) IBOutlet UITableView *tableView1;
@property (nonatomic,retain) IBOutlet UITableView *tableView2;
@property (nonatomic,retain) IBOutlet UIImageView *avatar;
@property (nonatomic, retain) IBOutlet UITableViewCell *avatarCell;
@property (nonatomic, retain) IBOutlet UITableViewCell *profileCell;
@property (nonatomic, retain) IBOutlet UITableViewCell* relationshipCell;
@property (strong) NSDictionary *profileForViewMode;
@property (nonatomic,retain) NSIndexPath *selectedIndexPath;
@property (nonatomic, retain) IBOutlet AlbumController *albumVC;
@property (assign) MyProfileMode myProfileMode;
@property (nonatomic, assign) BOOL isRefresh;
- (IBAction)editAvatar:(id)sender;
- (IBAction)doneYearView:(id)sender;

@end
